<?php if( !defined( 'MAIN_DIR' ) ) { header( 'Location: ' . dirname( PHP_SELF ) . '/' ); exit( ); }
	$file = ( isset( $file ) ? $file : new File( ) );
?>
<div class="tableHolder">
	<table summary="File Data" border="0" cellspacing="0" cellpadding="5">
	<tr>
		<td><b>Nombre del folder seguro actual:</b></td>
		<td><input type="text" name="file_name" id="file_name" value="<?= $file->getName( ) ?>" class="inputText" style="width: 250px;" /></td>
		<td><input type="image" name="file_update" value="Update" src="images/save.png" style="width: 16px; height: 16px" title="Update" alt="Update"/></td>
	</tr>
	</table>
</div>
<?php toTitle( '<img src="images/exclamation.png" width="16" height="16" border="0" title="Login" alt="Login"/>&nbsp;<b>Secure access:</b>' )?>
<div class="tableHolder">
	<table summary="File Data" border="0" cellspacing="0" cellpadding="5">
	<tr>
		<td><b>Login:</b></td>
		<td><input type="text" name="user" id="user" value="<?= $file->getProperty( 'user' ) ?>" class="inputText" style="width:150px;" /></td>
		<td><b>Password:</b></td>
		<td><input type="text" name="password" id="password" value="<?= $file->getProperty( 'password' ) ?>" class="inputText" style="width:150px;" /></td>
		<td><input type="image" name="file_updateProperties" value="Update" src="images/save.png" style="width: 16px; height: 16px" title="Update" alt="Update"/></td>
	</tr>
	</table>
</div>
<?php toTitle( '<img src="images/plus.png" width="16" height="16" border="0" title="New" alt="New"/>&nbsp;<b>Create new File:</b>' )?>
<div class="tableHolder">
	<table summary="New File" border="0" cellspacing="0" cellpadding="5">
	<tr>
		<td>
			<select name="file_type" id="file_type" class="inputText" style="width: 150px;">
				<option value="Photo">Imagen</option>
			</select>
		</td>
		<td><input type="text" name="file_newName" id="file_newName" value="" class="inputText" style="width: 250px;"/></td>
		<td><input type="image" name="file_create" value="Create" src="images/save.png" style="width: 16px; height: 16px" title="Create" alt="Create"/></td>
	</tr>
	</table>
</div>
<?php toTitle( '<img src="images/list.png" width="16" height="16" border="0" title="List" alt="List"/>&nbsp;<b>Contents of Actual Folder:</b>' )?>
<div id="fileDataHolder" style="top: 234px;">
	<table summary="Folder contents" width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td>
<?
	$files = $file->getSubFiles( );
	$readonly = false;
	include( SWAT_DIR . 'pages' . DS . 'listFiles.php' );
	unset( $files, $readonly );
?>
		</td>
	</tr>
	</table>
</div>
